<?php
// print_r($_GET);
// 删除数据库
include "common.php";
$id=$_GET['id'];
$sql = "DELETE FROM students WHERE id=$id";
$res =  mysqli_query($link,$sql);
if($res){
	// echo "删除成功";
	// echo "<script>alert('删除成功');window.location.href='index.php';</script>";
	$info['status'] = 1;
	// “你好” == “你好”
	$info['data'] = "删除成功";
}else{
	// echo "删除失败";
	$info['status'] = 0;
	// “你好” == “你好”
	$info['data'] = "删除成功";
}
echo json_encode($info);

?>